package com.bite.system.service.router.impl;

import com.bite.system.domain.router.Router;
import com.bite.system.service.router.IRouterService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class RouterServiceImpl implements IRouterService {

    @Value("${router.schedule.url:http://127.0.0.1:8080/xxl-job-admin/joblog}")
    private String scheduleUrl;

    @Override
    public Router schedule() {
        Router router = new Router();
        router.setUrl(scheduleUrl);
        return router;
    }
}
